package br.com.usjt.locadoraweb.model;
import br.com.usjt.locadoraweb.dao.ClientPFDAO;

public class ClientPF extends Client {
	
	private String sex = ""; //sexo
	private String cpf = ""; //numero cpf
	private String rg = ""; //numero rg
	private String birthDate = ""; //data nascimento
	private String cnh = ""; //numero cnh
	private String category = ""; //categoria
	private String ufIssue = ""; //uf emissor
	private String validityCnh = ""; //validade cnh
		
	public ClientPF() {
		
	}
	
	public ClientPF(String sex, String cpf, String rg,
			String birthDate, String cnh, String category, String ufIssue,
			String validityCnh) {
		super(id,name,address,phone,email);
		this.sex = sex;
		this.cpf = cpf;
		this.rg = rg;
		this.birthDate = birthDate;
		this.cnh = cnh;
		this.category = category;
		this.ufIssue = ufIssue;
		this.validityCnh = validityCnh;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getCpf() {
		return cpf;
	}

	public void setCpf(String cpf) {
		this.cpf = cpf;
	}

	public String getRg() {
		return rg;
	}

	public void setRg(String rg) {
		this.rg = rg;
	}

	public String getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(String birthDate) {
		this.birthDate = birthDate;
	}

	public String getCnh() {
		return cnh;
	}

	public void setCnh(String cnh) {
		this.cnh = cnh;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getUfIssue() {
		return ufIssue;
	}

	public void setUfIssue(String ufIssue) {
		this.ufIssue = ufIssue;
	}

	public String getValidityCnh() {
		return validityCnh;
	}

	public void setValidityCnh(String validityCnh) {
		this.validityCnh = validityCnh;
	}
	
	public boolean includeClient (ClientPF clientPF) {
		boolean status = false;
		ClientPFDAO include = new ClientPFDAO();
		try {
			status = include.includeClient(clientPF);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return status;
	}	
}
